<template>
  <van-nav-bar
    title="路线规划"
    left-text="返回"
    left-arrow
    @click-left="onClickLeft"
  />
  <div class="search">
    <van-search
      label="起点"
      placeholder="请输入起点"
      style="padding: 2px"
      v-model.trim="orig_text"
      :clearable="false"
      @search="onSearch"
    >
    </van-search>
    <van-search
      label="终点"
      placeholder="请输入终点"
      style="padding: 2px"
      v-model.trim="dest_text"
      :clearable="false"
      @search="onSearch"
    >
    </van-search>
  </div>
</template>
<script setup>
//导入hook
import { useGetRoute } from "./hooks/useGetRoute"
const { onClickLeft, orig_text, dest_text, onSearch } = useGetRoute()
</script>
<style scoped></style>
